package org.dromara.business.domain.vo;

import java.math.BigDecimal;
import org.dromara.business.domain.StakingProduct;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 质押产品视图对象 app_staking_products
 *
 * @author Eric
 * @date 2025-09-05
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = StakingProduct.class)
public class StakingProductVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    @ExcelProperty(value = "产品ID")
    private Long id;

    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    private String productName;

    /**
     * 产品代码
     */
    @ExcelProperty(value = "产品代码")
    private String productCode;

    /**
     * 质押周期（天）
     */
    @ExcelProperty(value = "质押周期", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "天=")
    private Integer periodDays;

    /**
     * 日收益率（%）
     */
    @ExcelProperty(value = "日收益率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private BigDecimal dailyRate;

    /**
     * 最小质押金额
     */
    @ExcelProperty(value = "最小质押金额")
    private BigDecimal minAmount;

    /**
     * 产品描述
     */
    @ExcelProperty(value = "产品描述")
    private String description;

    /**
     * 状态：1-上架，0-下架
     */
    @ExcelProperty(value = "状态：1-上架，0-下架", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "product_status")
    private Integer status;


}
